import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
<<<<<<< HEAD
    showDetail:false,
    detailId:null,
    screenHeight:null,
    listActive:null,
    isListActiveChilden:null
  },
  mutations: {
    setShowDetail(state,data){
      state.showDetail=data
    },
    setDetailId(state,data){
      state.detailId=data
    },
    setListActive(state,data){
      state.listActive=data
    },
    setIsListActiveChilden(state,data){
      state.isListActiveChilden=data
=======
    isDetail:false,
    newsId:null
  },
  mutations: {
    setIsDetail(state,data){
      state.isDetail=data
    },
    setNewsId(state,data){
      state.newsId=data
>>>>>>> 8ca74bc6d5bdc51b0229d3e883cc12e253c30e47
    }
  },
  actions: {
  },
  modules: {
  }
})
